<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>08-复选组件</title>
    <script src="../js/vue.js"></script>
    <script src="../js/jquery-3.6.0.js"></script>
    <script src="../element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css">
</head>
<body>
<!--1. 准备一个容器-->
<div id="app">
    <el-checkbox-group v-model="hobby">
        <el-checkbox label="1">唱歌</el-checkbox>
        <el-checkbox label="2">跳舞</el-checkbox>
        <el-checkbox label="3">rap</el-checkbox>
        <el-checkbox label="4">篮球</el-checkbox>
    </el-checkbox-group>

</div>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            hobby:["1","4"],
        },
        methods: {},
    });
</script>

</body>
</html>